package quanlithpt;

import java.awt.event.ItemEvent;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.filechooser.FileFilter;
import org.jdesktop.swingx.JXDatePicker;

/**
 *
 * @author codercui
 */
public class qly_tk extends javax.swing.JFrame {

    SQL csdl = new SQL();
    String ho_lot;
    String ten;
    String dia_chi;
    int gioi_tinh;
    String ntn_sinh_gv;
    String ntn_sinh_hs;
    String ntn_vao;
    String chuc_vu;
    String trinh_do;
    String bo_mon;
    String ten_dn;
    int lop;
    int hoc_phi;
    int ngay_vang;
    String email;
    String pass;
    String ten_hinh;
    String nguon_hinh = "";
    String taikhoan_gvs;
///////           sửa           ///////////////////////
    int co_doi_ngay1 = 0;
    int co_doi_ngay2 = 0;
    int co_doi_hinh = 0;
    String hinh_cu;
    int change = 0;
    int change_del = 0;
//////          xóa           ///////////////////////
    String taikhoan_xoa;

    public qly_tk() {
        initComponents();
        this.setLocation(200, 100);
    }
    /////////////////////////////  hàm cho giáo viên   /////////////////////////////

    public void get_gtt_gv() {
        ho_lot = txt_ho_lot.getText();
        ten = txt_ten.getText();
        gioi_tinh = (rad_nam.isSelected() ? 1 : 0);
        dia_chi = txt_diachi.getText();
        ntn_sinh_gv = ham_hotro.xl_ngaychoSQL(dap_ntn_sinh_gv.getDate());
        ntn_vao = ham_hotro.xl_ngaychoSQL(dap_ntn_vao.getDate());
        chuc_vu = txt_chucvu.getText();
        trinh_do = txt_trinh_do.getText();
        bo_mon = txt_bomon.getText();
        ten_dn = txt_user.getText();
        email = txt_email.getText();
        pass = txt_pass.getText();
    }

    public int check_gv_them() {  // trả về 0 khi lỗi, 1 bt 
        if (ho_lot.equals("")
                || ten.equals("")
                || dia_chi.equals("")
                || ntn_sinh_gv.equals("")
                || ntn_vao.equals("")
                || trinh_do.equals("")
                || bo_mon.equals("")
                || ten_dn.equals("")
                || email.equals("")
                || pass.equals("")) {
            JOptionPane.showMessageDialog(this, "Vui Lòng Điền Đầy Đủ Thông Tin");
            txt_ho_lot.requestFocus();
            return 0;
        }
        return 1;
    }

    public void reset_gv_them() {
        txt_ho_lot.setText("");
        txt_ten.setText("");
        rad_nam.setSelected(true);
        txt_diachi.setText("");
        dap_ntn_sinh_gv.setDate(null);
        dap_ntn_vao.setDate(null);
        txt_chucvu.setText("");
        txt_trinh_do.setText("");
        txt_bomon.setText("");
        txt_user.setText("");
        txt_email.setText("");
        txt_pass.setText("");
        txt_pass2.setText("");
        txt_hinh.setText("");
    }

    public void fill_gv_sua(String tk) {
        txt_ho_lot_gv_sua.setText(csdl.select("ho_gv", "giao_vien", " where ten_dn='" + tk + "'"));  /// họ lót
        txt_ten_gv_sua.setText(csdl.select("ten_gv", "giao_vien", " where ten_dn='" + tk + "'"));  // ten
        if (csdl.selectInt("gioi_tinh", "giao_vien", " where ten_dn='" + tk + "'") == 1) {      //giới tính
            rad_nam2.setSelected(true);
        } else {
            rad_nu2.setSelected(true);
        }
        txt_ntn_sinh_gv_sua.setText(ham_hotro.xu_lyngay(csdl.select("nam_sinh", "giao_vien", " where ten_dn='" + tk + "'")));
        txt_diachi2.setText(csdl.select("dia_chi", "giao_vien", " where ten_dn='" + tk + "'"));
        txt_ngayvao_s.setText(ham_hotro.xu_lyngay(csdl.select("nam_vao_truong", "giao_vien", " where ten_dn='" + tk + "'")));
        txt_chucvu1.setText(csdl.select("chuc_vu", "giao_vien", " where ten_dn='" + tk + "'"));
        txt_trinh_do1.setText(csdl.select("trinh_do", "giao_vien", " where ten_dn='" + tk + "'"));
        txt_bomon1.setText(csdl.select("trinh_do", "giao_vien", " where ten_dn='" + tk + "'"));
        if (csdl.selectInt("mo_tat", "tai_khoan", " where ten_dn='" + tk + "'") == 1) {      //giới tính
            cbo_bttk_gv.setSelectedIndex(0);
        } else {
            cbo_bttk_gv.setSelectedIndex(1);
        }
        taikhoan_gvs = tk;
    }
///////////////////////////// hàm cho học sinh   /////////////////////////////

    public void get_gtt_hs() {
        ho_lot = txt_ho_lot1.getText();
        ten = txt_ten1.getText();
        gioi_tinh = (rad_nam1.isSelected() ? 1 : 0);
        dia_chi = txt_diachi1.getText();
        ntn_sinh_hs = ham_hotro.xl_ngaychoSQL(dap_ntn_sinh_hs.getDate());
        String ten_lop = cbo_lop.getSelectedItem().toString();
        if (ten_lop.equals("")) {
            lop = -1;
        } else {
            lop = csdl.selectInt("ms_l", "lop", " where ten_lop='" + ten_lop + "'");
        }
        hoc_phi = (cbo_hocphi.getSelectedIndex() == 0 ? 1 : 0);
        ngay_vang = Integer.parseInt(String.valueOf(upd_ngay_vang.getValue()));
        ten_dn = txt_user1.getText();
        email = txt_email1.getText();
        pass = txt_pass1.getText();
    }

    public int check_hs_them() {  // trả về 0 khi lỗi, 1 bt 
        if (ho_lot.equals("")
                || ten.equals("")
                || dia_chi.equals("")
                || ntn_sinh_hs.equals("")
                || lop < 0
                || ten_dn.equals("")
                || email.equals("")
                || pass.equals("")) {
            JOptionPane.showMessageDialog(this, "Vui Lòng Điền Đầy Đủ Thông Tin");
            txt_ho_lot.requestFocus();
            return 0;
        }
        return 1;
    }

    public void reset_hs_them() {
        txt_ho_lot1.setText("");
        txt_ten1.setText("");
        txt_diachi1.setText("");
        dap_ntn_sinh_hs.setDate(null);
        cbo_lop.setSelectedIndex(-1);
        cbo_hocphi.setSelectedIndex(0);
        upd_ngay_vang.setValue(0);
        txt_user1.setText("");
        txt_hinh1.setText("");
        txt_email1.setText("");
        txt_pass1.setText("");
        txt_pass3.setText("");
    }
////////////////////////////////////////// sự kiện cho giáo viên   /////////////////////////////

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        xem_hinh_cu = new javax.swing.JDialog();
        xem = new javax.swing.JPanel();
        jLabel51 = new javax.swing.JLabel();
        buttonGroup3 = new javax.swing.ButtonGroup();
        jXCollapsiblePane1 = new org.jdesktop.swingx.JXCollapsiblePane();
        rad_group_timtheo = new javax.swing.ButtonGroup();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPan_capnhat = new javax.swing.JPanel();
        jTabbedPane5 = new javax.swing.JTabbedPane();
        jPan_them = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        txt_ho_lot = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        txt_ten = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        rad_nam = new javax.swing.JRadioButton();
        rad_nu = new javax.swing.JRadioButton();
        jLabel4 = new javax.swing.JLabel();
        txt_diachi = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        dap_ntn_vao = new org.jdesktop.swingx.JXDatePicker();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        txt_chucvu = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        txt_trinh_do = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        txt_bomon = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        txt_user = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        txt_hinh = new javax.swing.JTextField();
        btn_browser = new javax.swing.JButton();
        btn_them = new org.jdesktop.swingx.JXButton();
        btn_cancel = new org.jdesktop.swingx.JXButton();
        txt_pass = new javax.swing.JPasswordField();
        dap_ntn_sinh_gv = new org.jdesktop.swingx.JXDatePicker();
        jLabel42 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        txt_email = new javax.swing.JTextField();
        txt_pass2 = new javax.swing.JPasswordField();
        btn_xoa = new org.jdesktop.swingx.JXButton();
        jPanel9 = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        txt_ho_lot1 = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        txt_ten1 = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        rad_nam1 = new javax.swing.JRadioButton();
        rad_nu1 = new javax.swing.JRadioButton();
        dap_ntn_sinh_hs = new org.jdesktop.swingx.JXDatePicker();
        jLabel16 = new javax.swing.JLabel();
        txt_diachi1 = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        txt_user1 = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        txt_hinh1 = new javax.swing.JTextField();
        btn_chonhinh1 = new javax.swing.JButton();
        btn_them1 = new org.jdesktop.swingx.JXButton();
        jLabel18 = new javax.swing.JLabel();
        cbo_lop = new javax.swing.JComboBox();
        jLabel19 = new javax.swing.JLabel();
        cbo_hocphi = new javax.swing.JComboBox();
        jLabel21 = new javax.swing.JLabel();
        upd_ngay_vang = new javax.swing.JSpinner();
        jLabel44 = new javax.swing.JLabel();
        txt_pass3 = new javax.swing.JPasswordField();
        txt_email1 = new javax.swing.JTextField();
        jLabel45 = new javax.swing.JLabel();
        btn_xoa1 = new javax.swing.JButton();
        btn_cance2 = new javax.swing.JButton();
        txt_pass1 = new javax.swing.JPasswordField();
        jPan_sua = new javax.swing.JPanel();
        jTabbedPane3 = new javax.swing.JTabbedPane();
        jPanel13 = new javax.swing.JPanel();
        txt_ho_lot_gv_sua = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        txt_ten_gv_sua = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        rad_nam2 = new javax.swing.JRadioButton();
        rad_nu2 = new javax.swing.JRadioButton();
        jLabel28 = new javax.swing.JLabel();
        txt_diachi2 = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        txt_chucvu1 = new javax.swing.JTextField();
        jLabel32 = new javax.swing.JLabel();
        txt_trinh_do1 = new javax.swing.JTextField();
        jLabel33 = new javax.swing.JLabel();
        txt_bomon1 = new javax.swing.JTextField();
        jLabel36 = new javax.swing.JLabel();
        txt_file2 = new javax.swing.JTextField();
        btn_doi_hinh = new javax.swing.JButton();
        btn_luu = new org.jdesktop.swingx.JXButton();
        btn_cancel1 = new org.jdesktop.swingx.JXButton();
        cbo_tk_sua = new javax.swing.JComboBox();
        jLabel34 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        cbo_bttk_gv = new javax.swing.JComboBox();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        txt_ntn_sinh_gv_sua = new javax.swing.JTextField();
        ntn_nsinh_gv_s = new org.jdesktop.swingx.JXDatePicker();
        jLayeredPane2 = new javax.swing.JLayeredPane();
        txt_ngayvao_s = new javax.swing.JTextField();
        dap_ngayvao_s = new org.jdesktop.swingx.JXDatePicker();
        jLabel35 = new javax.swing.JLabel();
        jXButton1 = new org.jdesktop.swingx.JXButton();
        jPanel14 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        txt_ho_lot3 = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        txt_ten2 = new javax.swing.JTextField();
        jLabel47 = new javax.swing.JLabel();
        rad_nam3 = new javax.swing.JRadioButton();
        rad_nu3 = new javax.swing.JRadioButton();
        dap_ntn_sinh_hs1 = new org.jdesktop.swingx.JXDatePicker();
        jLabel48 = new javax.swing.JLabel();
        txt_diachi3 = new javax.swing.JTextField();
        jLabel49 = new javax.swing.JLabel();
        jLabel52 = new javax.swing.JLabel();
        txt_hinh2 = new javax.swing.JTextField();
        btn_chonhinh2 = new javax.swing.JButton();
        btn_them2 = new org.jdesktop.swingx.JXButton();
        jLabel53 = new javax.swing.JLabel();
        cbo_lop1 = new javax.swing.JComboBox();
        jLabel54 = new javax.swing.JLabel();
        cbo_hocphi1 = new javax.swing.JComboBox();
        jLabel55 = new javax.swing.JLabel();
        upd_ngay_vang1 = new javax.swing.JSpinner();
        txt_email2 = new javax.swing.JTextField();
        jLabel57 = new javax.swing.JLabel();
        btn_cance3 = new javax.swing.JButton();
        cbo_bttk_hs = new javax.swing.JComboBox();
        jLabel50 = new javax.swing.JLabel();
        cbo_tk_xoa_hs = new javax.swing.JComboBox();
        jLabel58 = new javax.swing.JLabel();
        jPan_xoa = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        cbo_tk_xoa = new javax.swing.JComboBox();
        txt_ten_xoa = new javax.swing.JTextField();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        txt_user_xoa = new javax.swing.JTextField();
        jLabel40 = new javax.swing.JLabel();
        txt_email_xoa = new javax.swing.JTextField();
        btn_xoa_tk = new javax.swing.JButton();
        btn_bo_xoa = new javax.swing.JButton();
        jLabel41 = new javax.swing.JLabel();
        txt_loai_xoa = new javax.swing.JTextField();
        btn_xoa_cancel = new javax.swing.JButton();
        jLabel61 = new javax.swing.JLabel();
        jPan_timkiem = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jLabel56 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        txt_noidungtim = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        txa_thongtin = new javax.swing.JTextArea();
        btn_timkiem = new javax.swing.JButton();
        btin = new javax.swing.JButton();
        btthoat = new javax.swing.JButton();
        rad_gv = new javax.swing.JRadioButton();
        radhs = new javax.swing.JRadioButton();
        jLabel67 = new javax.swing.JLabel();
        jLabel71 = new javax.swing.JLabel();
        rad_tentim = new javax.swing.JRadioButton();
        rad_matim = new javax.swing.JRadioButton();
        jButton1 = new javax.swing.JButton();
        jPan_thongke = new javax.swing.JPanel();
        jTabbedPane4 = new javax.swing.JTabbedPane();
        jPanel4 = new javax.swing.JPanel();
        jLabel66 = new javax.swing.JLabel();
        jLabel73 = new javax.swing.JLabel();
        jLabel74 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tbl_thongke = new javax.swing.JTable();
        btn_thongke = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        btn_thoat_tk1 = new javax.swing.JButton();
        cbo_dotuoitk = new javax.swing.JComboBox();
        jLabel72 = new javax.swing.JLabel();
        jLabel75 = new javax.swing.JLabel();
        cbo_gioitinhtk = new javax.swing.JComboBox();
        cbo_thamnientk = new javax.swing.JComboBox();
        cbo_bomontk = new javax.swing.JComboBox();
        jPanel5 = new javax.swing.JPanel();
        jLabel62 = new javax.swing.JLabel();
        jLabel63 = new javax.swing.JLabel();
        jLabel65 = new javax.swing.JLabel();
        jLabel69 = new javax.swing.JLabel();
        jLabel70 = new javax.swing.JLabel();
        jLabel68 = new javax.swing.JLabel();
        jLabel64 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jComboBox2 = new javax.swing.JComboBox();
        jComboBox4 = new javax.swing.JComboBox();
        jComboBox5 = new javax.swing.JComboBox();
        jComboBox7 = new javax.swing.JComboBox();
        jComboBox8 = new javax.swing.JComboBox();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        btn_thoat_tk = new javax.swing.JButton();

        xem.setBackground(new java.awt.Color(255, 255, 255));

        String ten_hinh;
        ten_hinh=csdl.select("ten_hinh", "giao_vien","Where ten_dn = '"+taikhoan_gvs+"'");
        if(ten_hinh.equals("null")){
            ten_hinh="noavatar.jpg";
        }
        jLabel51.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/giao_vien/"+ten_hinh)));

        javax.swing.GroupLayout xemLayout = new javax.swing.GroupLayout(xem);
        xem.setLayout(xemLayout);
        xemLayout.setHorizontalGroup(
            xemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(xemLayout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel51)
                .addContainerGap(44, Short.MAX_VALUE))
        );
        xemLayout.setVerticalGroup(
            xemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(xemLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(jLabel51)
                .addContainerGap(32, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout xem_hinh_cuLayout = new javax.swing.GroupLayout(xem_hinh_cu.getContentPane());
        xem_hinh_cu.getContentPane().setLayout(xem_hinh_cuLayout);
        xem_hinh_cuLayout.setHorizontalGroup(
            xem_hinh_cuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(xem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        xem_hinh_cuLayout.setVerticalGroup(
            xem_hinh_cuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(xem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        org.jdesktop.swingx.VerticalLayout verticalLayout1 = new org.jdesktop.swingx.VerticalLayout();
        verticalLayout1.setGap(2);
        jXCollapsiblePane1.getContentPane().setLayout(verticalLayout1);

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Quản lý thông tin");
        setResizable(false);

        jTabbedPane1.setForeground(new java.awt.Color(0, 0, 255));
        jTabbedPane1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

        jTabbedPane5.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

        jPanel7.setBackground(new java.awt.Color(255, 255, 255));

        jTabbedPane2.setBackground(new java.awt.Color(255, 255, 255));
        jTabbedPane2.setForeground(new java.awt.Color(255, 0, 0));
        jTabbedPane2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

        jPanel2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanel2MouseClicked(evt);
            }
        });

        jPanel8.setBackground(new java.awt.Color(255, 255, 255));
        jPanel8.setForeground(new java.awt.Color(0, 0, 255));
        jPanel8.setPreferredSize(new java.awt.Dimension(500, 445));

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel1.setText("Họ, tên lót:");

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel2.setText("Tên:");

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel3.setText("Giới tính:");

        rad_nam.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(rad_nam);
        rad_nam.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        rad_nam.setSelected(true);
        rad_nam.setText("Nam");

        rad_nu.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(rad_nu);
        rad_nu.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        rad_nu.setText("Nữ");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel4.setText("Ngày sinh:");
        jLabel4.setMaximumSize(new java.awt.Dimension(150, 30));
        jLabel4.setPreferredSize(new java.awt.Dimension(121, 14));

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel5.setText("Địa chỉ:");

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel6.setText("Ngày vào trường: ");
        jLabel6.setMaximumSize(new java.awt.Dimension(112, 15));

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel7.setText("Chức vụ:");

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel8.setText("Trình độ:");

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel9.setText("Bộ môn:");

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel11.setText("Tên đăng nhập:");

        jLabel12.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel12.setText("Mật khẩu:");

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel13.setText("Hình đại diện:");

        txt_hinh.setEditable(false);

        btn_browser.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_browser.setForeground(new java.awt.Color(0, 0, 204));
        btn_browser.setText("Duyệt");
        btn_browser.setPreferredSize(new java.awt.Dimension(65, 25));
        btn_browser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_browserActionPerformed(evt);
            }
        });

        btn_them.setForeground(new java.awt.Color(0, 0, 204));
        btn_them.setText("Thêm");
        btn_them.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_them.setMaximumSize(new java.awt.Dimension(65, 25));
        btn_them.setMinimumSize(new java.awt.Dimension(65, 25));
        btn_them.setPreferredSize(new java.awt.Dimension(65, 25));
        btn_them.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_themActionPerformed(evt);
            }
        });

        btn_cancel.setForeground(new java.awt.Color(0, 0, 204));
        btn_cancel.setText("Thoát");
        btn_cancel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_cancel.setPreferredSize(new java.awt.Dimension(65, 25));
        btn_cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_cancelActionPerformed(evt);
            }
        });

        jLabel42.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel42.setText("Email: ");

        jLabel43.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel43.setText("Nhập lại mật khẩu:");

        btn_xoa.setForeground(new java.awt.Color(0, 0, 255));
        btn_xoa.setText("Xóa");
        btn_xoa.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_xoa.setPreferredSize(new java.awt.Dimension(65, 25));
        btn_xoa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_xoaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(16, 16, 16)
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel8Layout.createSequentialGroup()
                                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txt_chucvu, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(dap_ntn_vao, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel8Layout.createSequentialGroup()
                                            .addComponent(rad_nam)
                                            .addGap(18, 18, 18)
                                            .addComponent(rad_nu))
                                        .addComponent(dap_ntn_sinh_gv, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel8Layout.createSequentialGroup()
                                        .addGap(1, 1, 1)
                                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addComponent(txt_email)
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                                                    .addComponent(txt_pass, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jLabel43)
                                                    .addGap(18, 18, 18)
                                                    .addComponent(txt_pass2, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addGroup(jPanel8Layout.createSequentialGroup()
                                                .addComponent(txt_hinh, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(btn_browser, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                                .addGap(0, 76, Short.MAX_VALUE))
                            .addGroup(jPanel8Layout.createSequentialGroup()
                                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(txt_trinh_do, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 340, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(txt_user, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)
                                        .addComponent(txt_bomon, javax.swing.GroupLayout.Alignment.LEADING)))
                                .addContainerGap(63, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(txt_diachi)
                                    .addGroup(jPanel8Layout.createSequentialGroup()
                                        .addComponent(txt_ho_lot, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(32, 32, 32)
                                        .addComponent(jLabel2)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(txt_ten, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addGap(41, 41, 41))))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7)
                            .addComponent(jLabel8)
                            .addComponent(jLabel9)
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12)
                            .addComponent(jLabel42))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel13)
                            .addComponent(jLabel3))
                        .addGap(25, 25, 25))))
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(75, 75, 75)
                .addComponent(btn_them, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41)
                .addComponent(btn_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41)
                .addComponent(btn_cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(65, 65, 65))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_ho_lot, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(txt_ten, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(rad_nam)
                    .addComponent(rad_nu))
                .addGap(7, 7, 7)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dap_ntn_sinh_gv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(txt_diachi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(9, 9, 9)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dap_ntn_vao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_chucvu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_trinh_do, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(txt_bomon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(txt_user, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel43)
                    .addComponent(txt_pass2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12)
                    .addComponent(txt_pass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel42)
                    .addComponent(txt_email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel13)
                    .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(btn_browser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txt_hinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(27, 27, 27)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btn_cancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_them, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(16, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, 561, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, 441, Short.MAX_VALUE)
        );

        jTabbedPane2.addTab("Giáo viên", jPanel2);

        jPanel9.setBackground(new java.awt.Color(255, 255, 255));
        jPanel9.setPreferredSize(new java.awt.Dimension(496, 444));
        jPanel9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanel9MouseClicked(evt);
            }
        });

        jPanel11.setBackground(new java.awt.Color(255, 255, 255));

        jPanel12.setBackground(new java.awt.Color(255, 255, 255));
        jPanel12.setForeground(new java.awt.Color(255, 255, 255));
        jPanel12.setPreferredSize(new java.awt.Dimension(500, 445));

        txt_ho_lot1.setVerifyInputWhenFocusTarget(false);

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel10.setText("Họ, tên lót:");

        jLabel14.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel14.setText("Tên:");

        jLabel15.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel15.setText("Giới tính:");

        rad_nam1.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup2.add(rad_nam1);
        rad_nam1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        rad_nam1.setSelected(true);
        rad_nam1.setText("Nam");

        rad_nu1.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup2.add(rad_nu1);
        rad_nu1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        rad_nu1.setText("Nữ");

        dap_ntn_sinh_hs.setBackground(new java.awt.Color(204, 255, 204));
        dap_ntn_sinh_hs.setFocusable(false);

        jLabel16.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel16.setText("Ngày sinh:");

        jLabel17.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel17.setText("Địa chỉ:");

        jLabel22.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel22.setText("Tên đăng nhập:");

        jLabel23.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel23.setText("Mật khẩu:");

        jLabel24.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel24.setText("Hình:");

        txt_hinh1.setEditable(false);

        btn_chonhinh1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_chonhinh1.setForeground(new java.awt.Color(0, 51, 255));
        btn_chonhinh1.setText("Duyệt");
        btn_chonhinh1.setPreferredSize(new java.awt.Dimension(65, 25));
        btn_chonhinh1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_chonhinh1ActionPerformed(evt);
            }
        });

        btn_them1.setForeground(new java.awt.Color(0, 0, 255));
        btn_them1.setText("Thêm");
        btn_them1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_them1.setMaximumSize(new java.awt.Dimension(65, 25));
        btn_them1.setMinimumSize(new java.awt.Dimension(65, 25));
        btn_them1.setPreferredSize(new java.awt.Dimension(65, 25));
        btn_them1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_them1ActionPerformed(evt);
            }
        });

        jLabel18.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel18.setText("Lớp:");

        cbo_lop.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                cbo_lopMouseReleased(evt);
            }
        });

        jLabel19.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel19.setText("Học phí:");

        cbo_hocphi.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Đã đóng", "Chưa đóng" }));

        jLabel21.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel21.setText("Ngày vắng:");

        upd_ngay_vang.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), null, Integer.valueOf(10), Integer.valueOf(1)));

        jLabel44.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel44.setText("Nhập lại mật khẩu:");

        jLabel45.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel45.setText("Email:");

        btn_xoa1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_xoa1.setForeground(new java.awt.Color(0, 0, 255));
        btn_xoa1.setText("Xóa");
        btn_xoa1.setPreferredSize(new java.awt.Dimension(65, 25));
        btn_xoa1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_xoa1ActionPerformed(evt);
            }
        });

        btn_cance2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_cance2.setForeground(new java.awt.Color(0, 0, 255));
        btn_cance2.setText("Thoát");
        btn_cance2.setPreferredSize(new java.awt.Dimension(65, 25));
        btn_cance2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_cance2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGap(75, 75, 75)
                        .addComponent(btn_them1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(41, 41, 41)
                        .addComponent(btn_xoa1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(41, 41, 41)
                        .addComponent(btn_cance2, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jLabel24)
                                .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                                .addComponent(jLabel16)
                                .addComponent(jLabel15)
                                .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel18)
                                .addComponent(jLabel19)
                                .addComponent(jLabel21)
                                .addComponent(jLabel22)
                                .addComponent(jLabel23))
                            .addComponent(jLabel45))
                        .addGap(25, 25, 25)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel12Layout.createSequentialGroup()
                                .addComponent(txt_hinh1, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btn_chonhinh1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(dap_ntn_sinh_hs, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(jPanel12Layout.createSequentialGroup()
                                    .addComponent(txt_ho_lot1)
                                    .addGap(29, 29, 29)
                                    .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(txt_ten1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(49, 49, 49))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel12Layout.createSequentialGroup()
                                    .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel12Layout.createSequentialGroup()
                                            .addComponent(txt_pass1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLabel44)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(txt_pass3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel12Layout.createSequentialGroup()
                                            .addComponent(rad_nam1)
                                            .addGap(18, 18, 18)
                                            .addComponent(rad_nu1)))
                                    .addGap(42, 42, 42)))
                            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(txt_user1, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(upd_ngay_vang, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(cbo_hocphi, javax.swing.GroupLayout.Alignment.LEADING, 0, 172, Short.MAX_VALUE)
                                .addComponent(cbo_lop, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(txt_email1, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txt_diachi1, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(44, Short.MAX_VALUE))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_ho_lot1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14)
                    .addComponent(txt_ten1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rad_nam1)
                    .addComponent(rad_nu1)
                    .addComponent(jLabel15))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dap_ntn_sinh_hs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_diachi1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_lop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel18))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_hocphi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel19))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(upd_ngay_vang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel21))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(txt_user1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(jLabel44)
                    .addComponent(txt_pass3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txt_pass1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_email1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel45))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_hinh1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel24)
                    .addComponent(btn_chonhinh1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 58, Short.MAX_VALUE)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btn_cance2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_xoa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_them1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(16, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 561, Short.MAX_VALUE)
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 441, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 1, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Học sinh", jPanel9);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane2)
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 470, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPan_themLayout = new javax.swing.GroupLayout(jPan_them);
        jPan_them.setLayout(jPan_themLayout);
        jPan_themLayout.setHorizontalGroup(
            jPan_themLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPan_themLayout.setVerticalGroup(
            jPan_themLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jTabbedPane5.addTab("Thêm thông tin", jPan_them);

        jTabbedPane3.setForeground(new java.awt.Color(255, 0, 0));
        jTabbedPane3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

        jPanel13.setBackground(new java.awt.Color(255, 255, 255));
        jPanel13.setPreferredSize(new java.awt.Dimension(498, 441));

        jLabel25.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel25.setText("Họ, tên lót:");

        jLabel26.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel26.setText("Tên:");

        jLabel27.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel27.setText("Giới tính:");

        rad_nam2.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(rad_nam2);
        rad_nam2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        rad_nam2.setText("Nam");

        rad_nu2.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(rad_nu2);
        rad_nu2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        rad_nu2.setText("Nữ");

        jLabel28.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel28.setText("Ngày, tháng năm sinh:");

        jLabel29.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel29.setText("Địa chỉ:");

        jLabel30.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel30.setText("Ngày vào trường: ");

        jLabel31.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel31.setText("Chức vụ:");

        jLabel32.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel32.setText("Trình độ:");

        jLabel33.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel33.setText("Bộ môn:");

        jLabel36.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel36.setText("Hình:");

        txt_file2.setEditable(false);

        btn_doi_hinh.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_doi_hinh.setForeground(new java.awt.Color(0, 51, 255));
        btn_doi_hinh.setText("Duyệt");
        btn_doi_hinh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_doi_hinhActionPerformed(evt);
            }
        });

        btn_luu.setForeground(new java.awt.Color(0, 51, 255));
        btn_luu.setText("Lưu");
        btn_luu.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_luu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_luuActionPerformed(evt);
            }
        });

        btn_cancel1.setForeground(new java.awt.Color(0, 51, 204));
        btn_cancel1.setText("Thoát");
        btn_cancel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_cancel1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_cancel1ActionPerformed(evt);
            }
        });

        cbo_tk_sua.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                cbo_tk_suaMouseEntered(evt);
            }
        });
        cbo_tk_sua.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbo_tk_suaItemStateChanged(evt);
            }
        });

        jLabel34.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel34.setText("Tài khoản:");

        jLabel37.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel37.setText("Bật tắt tài khoản:");

        cbo_bttk_gv.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Bật", "Tắt" }));

        txt_ntn_sinh_gv_sua.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                txt_ntn_sinh_gv_suaMouseClicked(evt);
            }
        });
        txt_ntn_sinh_gv_sua.setBounds(0, 0, 160, 20);
        jLayeredPane1.add(txt_ntn_sinh_gv_sua, javax.swing.JLayeredPane.DEFAULT_LAYER);

        ntn_nsinh_gv_s.setVisible(false);
        ntn_nsinh_gv_s.setBounds(0, 0, 160, 22);
        jLayeredPane1.add(ntn_nsinh_gv_s, javax.swing.JLayeredPane.DEFAULT_LAYER);

        txt_ngayvao_s.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                txt_ngayvao_sMouseClicked(evt);
            }
        });
        txt_ngayvao_s.setBounds(0, 0, 160, 20);
        jLayeredPane2.add(txt_ngayvao_s, javax.swing.JLayeredPane.DEFAULT_LAYER);

        dap_ngayvao_s.setVisible(false);
        dap_ngayvao_s.setBounds(0, 0, 160, 22);
        jLayeredPane2.add(dap_ngayvao_s, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel35.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel35.setText("Xem hình đại diện: ");

        jXButton1.setForeground(new java.awt.Color(0, 51, 255));
        jXButton1.setText("Xem");
        jXButton1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jXButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel13Layout.createSequentialGroup()
                                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel27)
                                    .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel33)
                                    .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel28)
                                    .addComponent(jLabel31)
                                    .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel37)
                                    .addComponent(jLabel35))
                                .addGap(39, 39, 39)
                                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel13Layout.createSequentialGroup()
                                                .addComponent(rad_nam2)
                                                .addGap(26, 26, 26)
                                                .addComponent(rad_nu2))
                                            .addComponent(txt_ten_gv_sua, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, Short.MAX_VALUE)
                                        .addComponent(jLabel26)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txt_ho_lot_gv_sua, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(txt_diachi2)
                                    .addGroup(jPanel13Layout.createSequentialGroup()
                                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(jLayeredPane2, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(txt_chucvu1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(jXButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(cbo_bttk_gv, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(txt_bomon1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)))
                                        .addGap(0, 0, Short.MAX_VALUE))
                                    .addComponent(txt_trinh_do1)))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                                .addGap(100, 100, 100)
                                .addComponent(jLabel34)
                                .addGap(40, 40, 40)
                                .addComponent(cbo_tk_sua, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(85, 85, 85)))
                        .addContainerGap(105, Short.MAX_VALUE))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGap(100, 100, 100)
                        .addComponent(btn_luu, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btn_cancel1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(100, 100, 100))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(123, 123, 123)
                        .addComponent(txt_file2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btn_doi_hinh, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(26, 26, 26))))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_tk_sua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel34))
                .addGap(29, 29, 29)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_ho_lot_gv_sua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel26)
                    .addComponent(txt_ten_gv_sua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel25))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rad_nam2)
                    .addComponent(rad_nu2)
                    .addComponent(jLabel27))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel28))
                .addGap(7, 7, 7)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_diachi2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel29))
                .addGap(7, 7, 7)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLayeredPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel30))
                .addGap(7, 7, 7)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_chucvu1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel31))
                .addGap(7, 7, 7)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_trinh_do1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel32))
                .addGap(7, 7, 7)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_bomon1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel33))
                .addGap(7, 7, 7)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(cbo_bttk_gv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(7, 7, 7)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel35)
                    .addComponent(jXButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(7, 7, 7)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btn_doi_hinh)
                    .addComponent(txt_file2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel36))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btn_cancel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_luu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(16, 16, 16))
        );

        jTabbedPane3.addTab("Giáo viên", jPanel13);

        jPanel14.setBackground(new java.awt.Color(255, 255, 255));
        jPanel14.setPreferredSize(new java.awt.Dimension(498, 441));

        jPanel15.setBackground(new java.awt.Color(255, 255, 255));
        jPanel15.setForeground(new java.awt.Color(255, 255, 255));
        jPanel15.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jPanel15.setPreferredSize(new java.awt.Dimension(498, 441));

        jLabel20.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel20.setText("Họ, tên lót:");

        jLabel46.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel46.setText("Tên:");

        jLabel47.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel47.setText("Giới tính:");

        rad_nam3.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup2.add(rad_nam3);
        rad_nam3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        rad_nam3.setText("Nam");

        rad_nu3.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup2.add(rad_nu3);
        rad_nu3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        rad_nu3.setText("Nữ");

        dap_ntn_sinh_hs1.setBackground(new java.awt.Color(204, 255, 204));
        dap_ntn_sinh_hs1.setFocusable(false);

        jLabel48.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel48.setText("Ngày sinh:");

        jLabel49.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel49.setText("Địa chỉ:");

        jLabel52.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel52.setText("Hình:");

        txt_hinh2.setEditable(false);

        btn_chonhinh2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_chonhinh2.setForeground(new java.awt.Color(0, 51, 255));
        btn_chonhinh2.setText("Duyệt");

        btn_them2.setForeground(new java.awt.Color(0, 51, 255));
        btn_them2.setText("Lưu");
        btn_them2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N

        jLabel53.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel53.setText("Lớp:");

        jLabel54.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel54.setText("Học phí:");

        cbo_hocphi1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Đã đóng", "Chưa đóng" }));

        jLabel55.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel55.setText("Ngày vắng:");

        upd_ngay_vang1.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), null, Integer.valueOf(10), Integer.valueOf(1)));

        jLabel57.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel57.setText("Email:");

        btn_cance3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_cance3.setForeground(new java.awt.Color(0, 0, 255));
        btn_cance3.setText("Thoát");
        btn_cance3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_cance3ActionPerformed(evt);
            }
        });

        cbo_bttk_hs.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Bật", "Tắt" }));

        jLabel50.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel50.setText("Bật tắt tài khoản:");

        cbo_tk_xoa_hs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbo_tk_xoa_hsActionPerformed(evt);
            }
        });

        jLabel58.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel58.setText("Tài khoản:");

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                        .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel15Layout.createSequentialGroup()
                                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel48)
                                        .addComponent(jLabel47)
                                        .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jLabel53)
                                        .addComponent(jLabel54)
                                        .addComponent(jLabel55))
                                    .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel52)
                                        .addComponent(jLabel57)
                                        .addComponent(jLabel50)))
                                .addGap(0, 52, Short.MAX_VALUE))
                            .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel15Layout.createSequentialGroup()
                                .addComponent(txt_hinh2, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btn_chonhinh2, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(cbo_bttk_hs, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txt_email2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(dap_ntn_sinh_hs1, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel15Layout.createSequentialGroup()
                                .addComponent(rad_nam3)
                                .addGap(26, 26, 26)
                                .addComponent(rad_nu3))
                            .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(upd_ngay_vang1, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(cbo_hocphi1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(cbo_lop1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(jPanel15Layout.createSequentialGroup()
                                    .addComponent(txt_ho_lot3, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(jLabel46, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(txt_ten2, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(txt_diachi3, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(67, 67, 67))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                        .addGap(100, 100, 100)
                        .addComponent(btn_them2, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btn_cance3, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(100, 100, 100))
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addGap(103, 103, 103)
                        .addComponent(jLabel58)
                        .addGap(40, 40, 40)
                        .addComponent(cbo_tk_xoa_hs, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_tk_xoa_hs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel58))
                .addGap(32, 32, 32)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_ho_lot3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel46)
                    .addComponent(txt_ten2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel20))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rad_nam3)
                    .addComponent(rad_nu3)
                    .addComponent(jLabel47))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dap_ntn_sinh_hs1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel48))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_diachi3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel49))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_lop1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel53))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_hocphi1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel54))
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(upd_ngay_vang1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel55))
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_bttk_hs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel50))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_email2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel57))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_hinh2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_chonhinh2)
                    .addComponent(jLabel52))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btn_cance3)
                    .addComponent(btn_them2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(16, 16, 16))
        );

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel15, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 561, Short.MAX_VALUE)
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, 439, Short.MAX_VALUE)
        );

        jTabbedPane3.addTab("Học sinh", jPanel14);

        javax.swing.GroupLayout jPan_suaLayout = new javax.swing.GroupLayout(jPan_sua);
        jPan_sua.setLayout(jPan_suaLayout);
        jPan_suaLayout.setHorizontalGroup(
            jPan_suaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 566, Short.MAX_VALUE)
        );
        jPan_suaLayout.setVerticalGroup(
            jPan_suaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPan_suaLayout.createSequentialGroup()
                .addComponent(jTabbedPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 468, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        jTabbedPane5.addTab("Sửa thông tin", jPan_sua);

        jPanel6.setBackground(new java.awt.Color(255, 255, 255));

        cbo_tk_xoa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                cbo_tk_xoaMouseEntered(evt);
            }
        });
        cbo_tk_xoa.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cbo_tk_xoaItemStateChanged(evt);
            }
        });

        jLabel38.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel38.setText("Họ tên chủ tài khoản :");

        jLabel39.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel39.setText("Tên đăng nhập :");

        jLabel40.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel40.setText("Email đăng ký :");

        btn_xoa_tk.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_xoa_tk.setForeground(new java.awt.Color(0, 0, 204));
        btn_xoa_tk.setText("Xóa");
        btn_xoa_tk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_xoa_tkActionPerformed(evt);
            }
        });

        btn_bo_xoa.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_bo_xoa.setForeground(new java.awt.Color(0, 0, 204));
        btn_bo_xoa.setText("Bỏ chọn");
        btn_bo_xoa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_bo_xoaActionPerformed(evt);
            }
        });

        jLabel41.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel41.setText("Loại tài khoản :");

        btn_xoa_cancel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_xoa_cancel.setForeground(new java.awt.Color(0, 0, 204));
        btn_xoa_cancel.setText("Thoát");
        btn_xoa_cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_xoa_cancelActionPerformed(evt);
            }
        });

        jLabel61.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel61.setText("Tài khoản:");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel61)
                .addGap(18, 18, 18)
                .addComponent(cbo_tk_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(124, 124, 124))
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel41)
                    .addComponent(jLabel38)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(btn_xoa_tk, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel39, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(37, 37, 37)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txt_user_xoa)
                            .addComponent(txt_email_xoa)
                            .addComponent(txt_loai_xoa)
                            .addComponent(txt_ten_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(8, 8, 8)
                        .addComponent(btn_bo_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 102, Short.MAX_VALUE)
                        .addComponent(btn_xoa_cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(60, 60, 60))))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(66, 66, 66)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_tk_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel61))
                .addGap(36, 36, 36)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txt_ten_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel38))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel39)
                    .addComponent(txt_user_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel40)
                    .addComponent(txt_email_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel41)
                    .addComponent(txt_loai_xoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(56, 56, 56)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btn_bo_xoa)
                    .addComponent(btn_xoa_tk)
                    .addComponent(btn_xoa_cancel))
                .addContainerGap(150, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPan_xoaLayout = new javax.swing.GroupLayout(jPan_xoa);
        jPan_xoa.setLayout(jPan_xoaLayout);
        jPan_xoaLayout.setHorizontalGroup(
            jPan_xoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPan_xoaLayout.setVerticalGroup(
            jPan_xoaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jTabbedPane5.addTab("Xóa thông tin", jPan_xoa);

        javax.swing.GroupLayout jPan_capnhatLayout = new javax.swing.GroupLayout(jPan_capnhat);
        jPan_capnhat.setLayout(jPan_capnhatLayout);
        jPan_capnhatLayout.setHorizontalGroup(
            jPan_capnhatLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane5)
        );
        jPan_capnhatLayout.setVerticalGroup(
            jPan_capnhatLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPan_capnhatLayout.createSequentialGroup()
                .addComponent(jTabbedPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 493, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Cập nhật", jPan_capnhat);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setPreferredSize(new java.awt.Dimension(498, 441));

        jLabel56.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel56.setText("Tìm giáo viên :");

        jLabel59.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel59.setText("Tìm học sinh :");

        jLabel60.setBackground(new java.awt.Color(255, 255, 255));
        jLabel60.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel60.setText("Thông tin cần tìm :");

        txt_noidungtim.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txt_noidungtimActionPerformed(evt);
            }
        });
        txt_noidungtim.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txt_noidungtimKeyTyped(evt);
            }
        });

        txa_thongtin.setColumns(20);
        txa_thongtin.setFont(new java.awt.Font("Palatino Linotype", 0, 13)); // NOI18N
        txa_thongtin.setRows(5);
        jScrollPane1.setViewportView(txa_thongtin);

        btn_timkiem.setBackground(new java.awt.Color(255, 255, 255));
        btn_timkiem.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btn_timkiem.setForeground(new java.awt.Color(0, 0, 204));
        btn_timkiem.setText("Tìm kiếm");
        btn_timkiem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_timkiemActionPerformed(evt);
            }
        });

        btin.setBackground(new java.awt.Color(255, 255, 255));
        btin.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btin.setForeground(new java.awt.Color(0, 0, 204));
        btin.setText("In xuất");

        btthoat.setBackground(new java.awt.Color(255, 255, 255));
        btthoat.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btthoat.setForeground(new java.awt.Color(0, 0, 204));
        btthoat.setText("Thoát");
        btthoat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btthoatActionPerformed(evt);
            }
        });

        buttonGroup3.add(rad_gv);
        rad_gv.setSelected(true);
        rad_gv.setOpaque(false);

        buttonGroup3.add(radhs);
        radhs.setOpaque(false);

        jLabel67.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel67.setText("Tìm theo tên :");

        jLabel71.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel71.setText("Tìm theo mã :");

        rad_group_timtheo.add(rad_tentim);
        rad_tentim.setSelected(true);
        rad_tentim.setOpaque(false);
        rad_tentim.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                rad_tentimMouseClicked(evt);
            }
        });

        rad_group_timtheo.add(rad_matim);
        rad_matim.setOpaque(false);
        rad_matim.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                rad_matimMouseClicked(evt);
            }
        });

        jButton1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jButton1.setForeground(new java.awt.Color(0, 0, 204));
        jButton1.setText("Xóa");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(65, 65, 65)
                                .addComponent(btin, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(58, 58, 58)
                                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(61, 61, 61)
                                .addComponent(btthoat, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(54, 54, 54)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel56)
                                            .addComponent(jLabel59))
                                        .addGap(27, 27, 27)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(radhs)
                                            .addComponent(rad_gv))
                                        .addGap(130, 130, 130)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel67)
                                            .addComponent(jLabel71, javax.swing.GroupLayout.Alignment.TRAILING))
                                        .addGap(36, 36, 36)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(rad_matim)
                                            .addComponent(rad_tentim)))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(jLabel60)
                                        .addGap(18, 18, 18)
                                        .addComponent(txt_noidungtim, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(33, 33, 33)
                                        .addComponent(btn_timkiem, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addGap(0, 70, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel67)
                            .addComponent(rad_tentim)
                            .addComponent(jLabel56))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(13, 13, 13)
                                .addComponent(rad_matim))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(jLabel59))))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(rad_gv)
                        .addGap(34, 34, 34))
                    .addComponent(radhs)
                    .addComponent(jLabel71))
                .addGap(34, 34, 34)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel60)
                    .addComponent(txt_noidungtim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_timkiem))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 311, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btin)
                    .addComponent(btthoat)
                    .addComponent(jButton1))
                .addGap(16, 16, 16))
        );

        javax.swing.GroupLayout jPan_timkiemLayout = new javax.swing.GroupLayout(jPan_timkiem);
        jPan_timkiem.setLayout(jPan_timkiemLayout);
        jPan_timkiemLayout.setHorizontalGroup(
            jPan_timkiemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 571, Short.MAX_VALUE)
        );
        jPan_timkiemLayout.setVerticalGroup(
            jPan_timkiemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 493, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Tìm kiếm", jPan_timkiem);

        jTabbedPane4.setForeground(new java.awt.Color(255, 0, 0));
        jTabbedPane4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

        jPanel4.setBackground(new java.awt.Color(255, 255, 255));

        jLabel66.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel66.setForeground(new java.awt.Color(0, 0, 255));
        jLabel66.setText("Các tiêu chí thống kê:");

        jLabel73.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel73.setText("Bộ môn:");

        jLabel74.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel74.setText("Độ tuổi: ");

        tbl_thongke.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        tbl_thongke.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Tiêu chí thống kê", "Giá trị thống kê", "Số lượng"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane3.setViewportView(tbl_thongke);

        btn_thongke.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_thongke.setForeground(new java.awt.Color(0, 0, 255));
        btn_thongke.setText("Thống kê");
        btn_thongke.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_thongkeActionPerformed(evt);
            }
        });

        jButton7.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jButton7.setForeground(new java.awt.Color(0, 0, 204));
        jButton7.setText("In xuất");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        btn_thoat_tk1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_thoat_tk1.setForeground(new java.awt.Color(0, 0, 204));
        btn_thoat_tk1.setText("Thoát");
        btn_thoat_tk1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_thoat_tk1ActionPerformed(evt);
            }
        });

        cbo_dotuoitk.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "< 30", "30 - 50", "> 50" }));

        jLabel72.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel72.setText("Giới tính:");

        jLabel75.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel75.setText("Thâm niên:");

        cbo_gioitinhtk.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "Nam", "Nữ" }));

        cbo_thamnientk.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "< 5 năm", "5 - 10 năm", "> 10 năm" }));

        cbo_bomontk.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                cbo_bomontkMouseEntered(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 566, Short.MAX_VALUE)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(100, 100, 100)
                        .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(150, 150, 150)
                        .addComponent(btn_thoat_tk1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(225, 225, 225)
                        .addComponent(btn_thongke, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel73)
                            .addComponent(jLabel72))
                        .addGap(25, 25, 25)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(cbo_gioitinhtk, 0, 120, Short.MAX_VALUE)
                            .addComponent(cbo_bomontk, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(39, 39, 39)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel74)
                            .addComponent(jLabel75))
                        .addGap(25, 25, 25)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(cbo_dotuoitk, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cbo_thamnientk, 0, 120, Short.MAX_VALUE))))
                .addContainerGap(82, Short.MAX_VALUE))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel66)
                    .addContainerGap(422, Short.MAX_VALUE)))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel73)
                    .addComponent(jLabel74)
                    .addComponent(cbo_dotuoitk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbo_bomontk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(14, 14, 14)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbo_gioitinhtk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel72)
                    .addComponent(cbo_thamnientk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel75))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)
                .addComponent(btn_thongke)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(25, 25, 25)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton7)
                    .addComponent(btn_thoat_tk1))
                .addGap(14, 14, 14))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel66)
                    .addContainerGap(440, Short.MAX_VALUE)))
        );

        jTabbedPane4.addTab("Giáo viên", jPanel4);

        jPanel5.setBackground(new java.awt.Color(255, 255, 255));

        jLabel62.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel62.setForeground(new java.awt.Color(0, 0, 255));
        jLabel62.setText("Các tiêu chí thống kê:");

        jLabel63.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel63.setText("Giới tính:");

        jLabel65.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel65.setText("Năm học:");

        jLabel69.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel69.setText("Số ngày vắng:");

        jLabel70.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel70.setText("Học phí:");

        jLabel68.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel68.setText("Lớp:");

        jLabel64.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel64.setText("Xếp loại:");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nam", "Nữ" }));

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2011 - 2012", "2012 - 2013", "2013 - 2014" }));

        jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "< 5 ngày", "5 - 10 ngày", "10 - 15 ngày", "15 - 20 ngày", "trên 20 ngày", " ", " " }));

        jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Giỏi", "Khá", "Trung bình" }));

        jComboBox7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "10", "11", "12" }));

        jComboBox8.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Đã đóng", "Chưa đóng" }));

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Họ tên đệm", "Tên", "Năm sinh", "Giới tính", "Địa chi", "Lớp học", "Xếp loại", "Học phí", "Số ngày vắng"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane2.setViewportView(jTable1);

        jButton4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jButton4.setForeground(new java.awt.Color(0, 0, 255));
        jButton4.setText("Thống kê");

        jButton5.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jButton5.setForeground(new java.awt.Color(0, 0, 204));
        jButton5.setText("In xuất");

        btn_thoat_tk.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btn_thoat_tk.setForeground(new java.awt.Color(0, 0, 204));
        btn_thoat_tk.setText("Thoát");

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel62))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(199, 199, 199)
                        .addComponent(jButton4))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel65)
                            .addComponent(jLabel63)
                            .addComponent(jLabel69))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(47, 47, 47)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel64)
                            .addComponent(jLabel68, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel70, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox8, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(100, 100, 100)
                        .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(150, 150, 150)
                        .addComponent(btn_thoat_tk, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(103, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel62)
                .addGap(16, 16, 16)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(53, 53, 53)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel70)))
                    .addComponent(jLabel64)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel63)
                            .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel65)
                            .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel68))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel69))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton5)
                    .addComponent(btn_thoat_tk))
                .addGap(15, 15, 15))
        );

        jTabbedPane4.addTab("Học sinh", jPanel5);

        javax.swing.GroupLayout jPan_thongkeLayout = new javax.swing.GroupLayout(jPan_thongke);
        jPan_thongke.setLayout(jPan_thongkeLayout);
        jPan_thongkeLayout.setHorizontalGroup(
            jPan_thongkeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane4)
        );
        jPan_thongkeLayout.setVerticalGroup(
            jPan_thongkeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPan_thongkeLayout.createSequentialGroup()
                .addComponent(jTabbedPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 495, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Thống kê", jPan_thongke);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 522, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        jTabbedPane1.getAccessibleContext().setAccessibleName("Thêm tài khoản");

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btn_browserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_browserActionPerformed
        JFileChooser file = new JFileChooser(".");
        file.setDialogTitle("Chọn ảnh đại diện");
        file.setAcceptAllFileFilterUsed(false);
        this.setAlwaysOnTop(false);
        FileFilter img = new ExtensionFileFilter("JPG and JPEG", new String[]{"JPG", "JPEG"});
        file.setFileFilter(img);
        int status = file.showOpenDialog(null);
        if (status == JFileChooser.APPROVE_OPTION) {
            String dia_chi_file = file.getSelectedFile().getParent() + "\\" + file.getSelectedFile().getName();
            txt_hinh.setText(dia_chi_file);
        }
        if (status != JFileChooser.CANCEL_OPTION) {
            nguon_hinh = file.getSelectedFile().getParent() + "\\" + file.getSelectedFile().getName();
            ten_hinh = txt_user.getText() + file.getSelectedFile().getName();  // tên hình có thể bị trùng, nên gắng thêm user (trong copy file đổi)
        }
        this.setAlwaysOnTop(true);
    }//GEN-LAST:event_btn_browserActionPerformed

    private void btn_themActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_themActionPerformed
        try {

            if (this.check_gv_them() > 0) {
                SQL a = new SQL();
                if (a.check_tk(txt_user.getText()) == 1) {
                    JOptionPane.showMessageDialog(this, "Tên đăng nhập này đã có rồi !!\n vui lòng chọn tên khác !!");
                    txt_user.setText("");
                    txt_user.requestFocus();
                } else {
                    this.get_gtt_gv();
                    if (txt_pass.getText().equals(txt_pass2.getText())) {
                        String cac_cot_tk = "ten_dn, pass, email, loai_tk, mo_tat";
                        String cac_giatri_tk = "'" + ten_dn + "', '" + pass + "', '" + email + "', 1, 1";
//                  System.out.println(cac_giatri_tk);
                        String cac_cot_gv = "ho_gv, ten_gv, gioi_tinh, dia_chi, nam_sinh, nam_vao_truong, chuc_vu, trinh_do, bo_mon, ten_dn, ten_hinh";
                        String cac_giatri_gv = "'" + ho_lot + "', '" + ten + "'," + gioi_tinh + ", '" + dia_chi + "', '" + ntn_sinh_gv + "', '" + ntn_vao + "', '" + chuc_vu + "', '"
                                + trinh_do + "', '" + bo_mon + "', '" + ten_dn + "', '" + ten_hinh + "'";
                        /*thêm tài khoản */ a.insert(cac_cot_tk, "tai_khoan", cac_giatri_tk);
                        /*thêm giáo viên */ a.insert(cac_cot_gv, "giao_vien", cac_giatri_gv);
                        // chép hình vào thư mục hình             
                        // dấu "\\" để biểu diễn cho "\"
                        if (!nguon_hinh.equals("")) {
                            String dich = "..\\QuanLiTHPT\\src\\img\\giao_vien\\" + ten_dn;
                            ham_hotro.CopyFile(nguon_hinh, dich);
                        }
                        JOptionPane.showMessageDialog(this, "Tài khoản đã được thêm ");
                        //   this.reset_gv_them();
                    } else {
                        JOptionPane.showMessageDialog(this, "Mật khẩu xác nhận không chính xác !!\n vui lòng nhập lại");
                        txt_pass.setText("");
                        txt_pass2.setText("");
                    }
                }
            }
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Thông tin trên không đầy đủ");
        }
    }//GEN-LAST:event_btn_themActionPerformed

    private void btn_cancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_cancelActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btn_cancelActionPerformed

    private void btn_xoaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_xoaActionPerformed
        //  this.reset_gv_them();
    }//GEN-LAST:event_btn_xoaActionPerformed

//////////////////////////////////// sự kiện cho học sinh    ////////
    private void btn_chonhinh1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_chonhinh1ActionPerformed
        JFileChooser file = new JFileChooser(".");
        file.setDialogTitle("Chọn ảnh đại diện");
        file.setAcceptAllFileFilterUsed(false);
        this.setAlwaysOnTop(false);  // cho nó không luôn nằm trên (nằm dưới để cái JFileChooser nằm trên)
        FileFilter img = new ExtensionFileFilter("JPG and JPEG", new String[]{"JPG", "JPEG"});
        file.setFileFilter(img);
        int status = file.showOpenDialog(null);
        if (status == JFileChooser.APPROVE_OPTION) {
            String dia_chi_file = file.getSelectedFile().getParent() + "\\" + file.getSelectedFile().getName();
            txt_hinh1.setText(dia_chi_file);
        }
        if (file.getSelectedFile().isFile()) {
            nguon_hinh = file.getSelectedFile().getParent() + "\\" + file.getSelectedFile().getName();
            ten_hinh = txt_user1.getText() + file.getSelectedFile().getName();
        }  // tên hình có thể bị trùng, nên gắng thêm user (trong copy file đổi)
        this.setAlwaysOnTop(true);  // trả lại bt
    }//GEN-LAST:event_btn_chonhinh1ActionPerformed

    private void btn_them1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_them1ActionPerformed
        try {
            this.get_gtt_hs();
            if (this.check_hs_them() > 0) {
                SQL a = new SQL();
                if (a.check_tk(ten_dn) == 1) {
                    JOptionPane.showMessageDialog(this, "Tên đăng nhập này đã có rồi !!\n vui lòng chọn tên khác !!");
                    txt_user1.setText("");
                    txt_user1.requestFocus();
                } else {
                    if (txt_pass1.getText().equals(txt_pass3.getText())) {
                        String cac_cot_tk = "ten_dn, pass, email, loai_tk, mo_tat";
                        String cac_giatri_tk = "'" + ten_dn + "', '" + pass + "', '" + email + "', 2, 1";
                        String cac_cot_hs = "ho_hs, ten_hs, gioi_tinh, dia_chi, sinh_nhat, ms_l, hoc_phi, ngay_vang, ten_dn, ten_hinh";
                        String cac_giatri_hs = "'" + ho_lot + "', '" + ten + "'," + gioi_tinh + ", '" + dia_chi + "', '" + ntn_sinh_hs + "'," + lop + "," + hoc_phi + "," + ngay_vang + ",'" + ten_dn + "', '" + ten_hinh + "'";
                        /*thêm tài khoản */ a.insert(cac_cot_tk, "tai_khoan", cac_giatri_tk);
                        /*thêm giáo viên */ a.insert(cac_cot_hs, "hoc_sinh", cac_giatri_hs);
                        // chép hình vào thư mục hình             
                        // dấu "\\" để biểu diễn cho "\"
                        if (!nguon_hinh.equals("")) {
                            String dich = "..\\QuanLiTHPT\\src\\img\\hoc_sinh\\" + ten_dn; // khúc sau không có // để gắn thêm user vào trước tên hình thật
                            ham_hotro.CopyFile(nguon_hinh, dich);
                        }
                        JOptionPane.showMessageDialog(this, "Tài khoản đã được thêm ");
                        //  this.reset_hs_them();
                    } else {
                        JOptionPane.showMessageDialog(this, "Mật khẩu xác nhận không chính xác !!\n vui lòng nhập lại");
                        txt_pass1.setText("");
                        txt_pass3.setText("");
                    }
                }
            }
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Thông tin trên không đầy đủ");
        }
    }//GEN-LAST:event_btn_them1ActionPerformed

    private void btn_xoa1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_xoa1ActionPerformed
        //   this.reset_hs_them();
    }//GEN-LAST:event_btn_xoa1ActionPerformed

    private void btn_cance2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_cance2ActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btn_cance2ActionPerformed

    private void cbo_lopMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cbo_lopMouseReleased
        csdl.fill_combo(cbo_lop, "ten_lop", "lop");
        cbo_lop.setSelectedIndex(-1);
    }//GEN-LAST:event_cbo_lopMouseReleased
//////////////////// sự kiện chuyển 2 panel thêm
    private void jPanel2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel2MouseClicked
        //   this.reset_hs_them();
    }//GEN-LAST:event_jPanel2MouseClicked

    private void jPanel9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel9MouseClicked
        //   this.reset_gv_them();
    }//GEN-LAST:event_jPanel9MouseClicked

    private void btn_cance3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_cance3ActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btn_cance3ActionPerformed

    private void btn_bo_xoaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_bo_xoaActionPerformed
        txt_ten_xoa.setText("");
        txt_loai_xoa.setText("");
        txt_user_xoa.setText("");
        txt_email_xoa.setText("");
    }//GEN-LAST:event_btn_bo_xoaActionPerformed

    private void btn_xoa_cancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_xoa_cancelActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btn_xoa_cancelActionPerformed

    private void btn_xoa_tkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_xoa_tkActionPerformed
        int xac_nhan = JOptionPane.showConfirmDialog(this, "Bạn có muốn xóa tài khoản " + taikhoan_xoa + " không ?");
        if (xac_nhan == 0) {
            csdl.update("tai_khoan", " mo_tat=0 ", " where ten_dn='" + taikhoan_xoa + "'");
            /*      int ok=csdl.delete("tai_khoan", " where ten_dn='"+taikhoan_xoa+"'");
             if(ok>0){    */
            JOptionPane.showMessageDialog(this, "Đã xóa tài khoản " + taikhoan_xoa);
        }
    }//GEN-LAST:event_btn_xoa_tkActionPerformed

    private void btn_timkiemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_timkiemActionPerformed
        int doituong = rad_gv.isSelected() ? 0 : 1; // 0 là giáo viên, 1 là học sinh
        int loai = rad_tentim.isSelected() ? 0 : 1; // 0 là tìm theo tên, 1 là tìm theo mã
        String rs = "";
        String noidungtim = txt_noidungtim.getText();
        if (txt_noidungtim.equals("")) {
            JOptionPane.showMessageDialog(null, "Bạn chưa nhập vào tên muốn tìm kiếm");
        } else {
            try {
                rs = csdl.search(txa_thongtin, noidungtim, doituong, loai);
            } catch (SQLException ex) {
                Logger.getLogger(qly_tk.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        if (!rs.equals("")) {
            //txt_thongtin.setText(rs);
        } else {
            JOptionPane.showMessageDialog(null, "Không tìm thấy thông tin");
            txa_thongtin.setText("");
        }
    }//GEN-LAST:event_btn_timkiemActionPerformed

    private void btthoatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btthoatActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btthoatActionPerformed

    private void btn_thongkeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_thongkeActionPerformed
        String bomon = cbo_bomontk.getSelectedItem().toString();
        String do_tuoi = cbo_dotuoitk.getSelectedItem().toString();
        String gioi_tinh = cbo_gioitinhtk.getSelectedItem().toString();
        String tham_nien = cbo_thamnientk.getSelectedItem().toString();
        csdl.statistic(bomon, do_tuoi, gioi_tinh, tham_nien, tbl_thongke);
    }//GEN-LAST:event_btn_thongkeActionPerformed

    private void cbo_tk_xoa_hsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbo_tk_xoa_hsActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cbo_tk_xoa_hsActionPerformed

    private void jXButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXButton1ActionPerformed
        xem_hinh_cu.setSize(50, 60);
        xem_hinh_cu.setLocation(250, 350);
        xem_hinh_cu.setVisible(true);
    }//GEN-LAST:event_jXButton1ActionPerformed

    private void txt_ngayvao_sMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txt_ngayvao_sMouseClicked
        txt_ngayvao_s.setVisible(false);
        dap_ngayvao_s.setVisible(true);
        co_doi_ngay2 = 1;
    }//GEN-LAST:event_txt_ngayvao_sMouseClicked

    private void txt_ntn_sinh_gv_suaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txt_ntn_sinh_gv_suaMouseClicked
        txt_ntn_sinh_gv_sua.setVisible(false);
        ntn_nsinh_gv_s.setVisible(true);
        co_doi_ngay1 = 1;
    }//GEN-LAST:event_txt_ntn_sinh_gv_suaMouseClicked

    private void cbo_tk_suaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbo_tk_suaItemStateChanged
        change++;
        if (evt.getStateChange() == ItemEvent.SELECTED && change > 1) {
            String ten_tk = String.valueOf(cbo_tk_sua.getSelectedItem());
            this.fill_gv_sua(ten_tk);
            taikhoan_gvs = ten_tk;
        }
    }//GEN-LAST:event_cbo_tk_suaItemStateChanged

    private void cbo_tk_suaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cbo_tk_suaMouseEntered
        if (cbo_tk_sua.getItemAt(1) == null) {
            csdl.fill_combo1(cbo_tk_sua, "ten_dn", "tai_khoan", " where loai_tk=1");
            cbo_tk_sua.setSelectedIndex(-1);
        }
    }//GEN-LAST:event_cbo_tk_suaMouseEntered

    private void btn_cancel1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_cancel1ActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btn_cancel1ActionPerformed

    private void btn_luuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_luuActionPerformed
        int xac_nhan = JOptionPane.showConfirmDialog(this, "Bạn có muốn lưu thay đổi trên không");
        if (xac_nhan == 0) {
            JOptionPane.showMessageDialog(this, "làm");
            String ho_gvs = txt_ho_lot_gv_sua.getText();  /// họ lót
            String ten_gvs = txt_ten_gv_sua.getText();  // ten
            int gioi_tinh_gvs = (rad_nam2.isSelected() ? 1 : 0);
            String nam_sinh_gvs = csdl.select("nam_sinh", "giao_vien", " where ten_dn='" + taikhoan_gvs + "'");
            if (co_doi_ngay1 > 0) {
                nam_sinh_gvs = ham_hotro.xl_ngaychoSQL(ntn_nsinh_gv_s.getDate());
            } else {
                nam_sinh_gvs = txt_ntn_sinh_gv_sua.getText();
            }
            String dia_chi_gvs = txt_diachi2.getText();
            String ngay_vao = csdl.select("nam_sinh", "giao_vien", " where ten_dn='" + taikhoan_gvs + "'");
            if (co_doi_ngay2 > 0) {
                ngay_vao = ham_hotro.xl_ngaychoSQL(dap_ngayvao_s.getDate());
            } else {
                nam_sinh_gvs = txt_ngayvao_s.getText();
            }
            String chuc_vu_gvs = txt_chucvu1.getText();
            String trinh_do_gvs = txt_trinh_do1.getText();
            String bo_mon_gvs = txt_bomon1.getText();
            String ten_hinh_gvs = csdl.select("ten_hinh", "giao_vien", " where ten_dn='" + taikhoan_gvs + "'");
            if (co_doi_hinh > 0) {
                ten_hinh_gvs = ten_hinh;
            }
            int banned = (cbo_bttk_gv.getSelectedIndex() == 0 ? 1 : 0);
            ////////////// check ràng buột
            if (ho_gvs.equals("")
                    || ten_gvs.equals("")
                    || nam_sinh_gvs.equals("")
                    || dia_chi_gvs.equals("")
                    || ngay_vao.equals("")
                    || trinh_do_gvs.equals("")
                    || bo_mon_gvs.equals("")) {
                JOptionPane.showMessageDialog(this, "Vui lòng điền đủ thông tin");
            } else {          ///// bắt đầu update
                if (co_doi_hinh > 0) {
                    String nguon_hinh_gvs = txt_file2.getText();
                    String dich = "..\\QuanLiTHPT\\src\\img\\giao_vien\\" + taikhoan_gvs;
                    ham_hotro.CopyFile(nguon_hinh, dich);
                    int thanh_cong = csdl.update("giao_vien", "ten_hinh=' " + ten_hinh_gvs + "'", " where ten_dn='" + taikhoan_gvs + "'");
                    String xoa_hinh = "..\\QuanLiTHPT\\src\\img\\giao_vien\\" + hinh_cu;
                    File avatar_cu = new File(xoa_hinh);
                    avatar_cu.delete();
                }
            }
        }
    }//GEN-LAST:event_btn_luuActionPerformed

    private void btn_doi_hinhActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_doi_hinhActionPerformed

        hinh_cu = csdl.select("nam_sinh", "giao_vien", " where ten_dn='" + taikhoan_gvs + "'");
        JFileChooser file = new JFileChooser(".");
        file.setDialogTitle("Chọn ảnh đại diện");
        file.setAcceptAllFileFilterUsed(false);
        this.setAlwaysOnTop(false);
        FileFilter img = new ExtensionFileFilter("JPG and JPEG", new String[]{"JPG", "JPEG"});
        file.setFileFilter(img);
        int status = file.showOpenDialog(null);
        if (status == JFileChooser.APPROVE_OPTION) {
            String dia_chi_file = file.getSelectedFile().getParent() + "\\" + file.getSelectedFile().getName();
            txt_file2.setText(dia_chi_file);
        }
        if (status != JFileChooser.CANCEL_OPTION) {
            nguon_hinh = file.getSelectedFile().getParent() + "\\" + file.getSelectedFile().getName();
            ten_hinh = txt_user.getText() + file.getSelectedFile().getName();  // tên hình có thể bị trùng, nên gắng thêm user (trong copy file đổi)
        }
        this.setAlwaysOnTop(true);
        co_doi_hinh = 1;
    }//GEN-LAST:event_btn_doi_hinhActionPerformed

    private void cbo_tk_xoaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbo_tk_xoaItemStateChanged
        change_del++;
        if (change_del > 1) {
            String tai_khoan_xoa = String.valueOf(cbo_tk_xoa.getSelectedItem());
            int loai = csdl.selectInt("loai_tk", "tai_khoan", " where ten_dn='" + tai_khoan_xoa + "'");
            if (loai == 1) {
                txt_ten_xoa.setText(csdl.select("ho_gv", "giao_vien", " where ten_dn='" + tai_khoan_xoa + "'") + " "
                        + csdl.select("ten_gv", "giao_vien", " where ten_dn='" + tai_khoan_xoa + "'"));
                txt_loai_xoa.setText("Giáo viên");
            }
            if (loai == 2) {
                txt_ten_xoa.setText(csdl.select("ho_hs", "hoc_sinh", " where ten_dn='" + tai_khoan_xoa + "'") + " "
                        + csdl.select("ten_hs", "hoc_sinh", " where ten_dn='" + tai_khoan_xoa + "'"));
                txt_loai_xoa.setText("Học sinh");
            }
            txt_user_xoa.setText(tai_khoan_xoa);
            txt_email_xoa.setText(csdl.select("email", "tai_khoan", " where ten_dn='" + tai_khoan_xoa + "'"));
            taikhoan_xoa = tai_khoan_xoa;
        }
    }//GEN-LAST:event_cbo_tk_xoaItemStateChanged

    private void cbo_tk_xoaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cbo_tk_xoaMouseEntered
        if (cbo_tk_xoa.getItemAt(1) == null) {
            csdl.fill_combo1(cbo_tk_xoa, "ten_dn", "tai_khoan", " where loai_tk = 1 or loai_tk = 2 ");
            cbo_tk_xoa.setSelectedIndex(-1);
        }
    }//GEN-LAST:event_cbo_tk_xoaMouseEntered

    private void txt_noidungtimKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_noidungtimKeyTyped
        int key = (int) evt.getKeyChar();
        if (rad_matim.isSelected() && key != KeyEvent.VK_BACK_SPACE && key != KeyEvent.VK_ENTER && (key > 57 || key < 48)) {
            evt.consume();
            JOptionPane.showMessageDialog(null, "Khi tìm kiếm thông tin với mã\n thì bạn chỉ được nhập số");
        }
    }//GEN-LAST:event_txt_noidungtimKeyTyped

    private void rad_tentimMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rad_tentimMouseClicked
        txt_noidungtim.setText("");
    }//GEN-LAST:event_rad_tentimMouseClicked

    private void rad_matimMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rad_matimMouseClicked
        txt_noidungtim.setText("");
    }//GEN-LAST:event_rad_matimMouseClicked

    private void txt_noidungtimActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txt_noidungtimActionPerformed
        btn_timkiemActionPerformed(evt);
    }//GEN-LAST:event_txt_noidungtimActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        txa_thongtin.setText("");
    }//GEN-LAST:event_jButton1ActionPerformed

    private void cbo_bomontkMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cbo_bomontkMouseEntered
        csdl.fill_combo(cbo_bomontk, "bo_mon", "giao_vien", true);
    }//GEN-LAST:event_cbo_bomontkMouseEntered

    private void btn_thoat_tk1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_thoat_tk1ActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btn_thoat_tk1ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
    }//GEN-LAST:event_jButton7ActionPerformed

    public static void main(String args[]) {
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(qly_tk.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(qly_tk.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(qly_tk.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(qly_tk.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new qly_tk().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btin;
    private javax.swing.JButton btn_bo_xoa;
    private javax.swing.JButton btn_browser;
    private javax.swing.JButton btn_cance2;
    private javax.swing.JButton btn_cance3;
    private org.jdesktop.swingx.JXButton btn_cancel;
    private org.jdesktop.swingx.JXButton btn_cancel1;
    private javax.swing.JButton btn_chonhinh1;
    private javax.swing.JButton btn_chonhinh2;
    private javax.swing.JButton btn_doi_hinh;
    private org.jdesktop.swingx.JXButton btn_luu;
    private org.jdesktop.swingx.JXButton btn_them;
    private org.jdesktop.swingx.JXButton btn_them1;
    private org.jdesktop.swingx.JXButton btn_them2;
    private javax.swing.JButton btn_thoat_tk;
    private javax.swing.JButton btn_thoat_tk1;
    private javax.swing.JButton btn_thongke;
    private javax.swing.JButton btn_timkiem;
    private org.jdesktop.swingx.JXButton btn_xoa;
    private javax.swing.JButton btn_xoa1;
    private javax.swing.JButton btn_xoa_cancel;
    private javax.swing.JButton btn_xoa_tk;
    private javax.swing.JButton btthoat;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.ButtonGroup buttonGroup3;
    private javax.swing.JComboBox cbo_bomontk;
    private javax.swing.JComboBox cbo_bttk_gv;
    private javax.swing.JComboBox cbo_bttk_hs;
    private javax.swing.JComboBox cbo_dotuoitk;
    private javax.swing.JComboBox cbo_gioitinhtk;
    private javax.swing.JComboBox cbo_hocphi;
    private javax.swing.JComboBox cbo_hocphi1;
    private javax.swing.JComboBox cbo_lop;
    private javax.swing.JComboBox cbo_lop1;
    private javax.swing.JComboBox cbo_thamnientk;
    private javax.swing.JComboBox cbo_tk_sua;
    private javax.swing.JComboBox cbo_tk_xoa;
    private javax.swing.JComboBox cbo_tk_xoa_hs;
    private org.jdesktop.swingx.JXDatePicker dap_ngayvao_s;
    private org.jdesktop.swingx.JXDatePicker dap_ntn_sinh_gv;
    private org.jdesktop.swingx.JXDatePicker dap_ntn_sinh_hs;
    private org.jdesktop.swingx.JXDatePicker dap_ntn_sinh_hs1;
    private org.jdesktop.swingx.JXDatePicker dap_ntn_vao;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton7;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox4;
    private javax.swing.JComboBox jComboBox5;
    private javax.swing.JComboBox jComboBox7;
    private javax.swing.JComboBox jComboBox8;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JLayeredPane jLayeredPane2;
    private javax.swing.JPanel jPan_capnhat;
    private javax.swing.JPanel jPan_sua;
    private javax.swing.JPanel jPan_them;
    private javax.swing.JPanel jPan_thongke;
    private javax.swing.JPanel jPan_timkiem;
    private javax.swing.JPanel jPan_xoa;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JTabbedPane jTabbedPane3;
    private javax.swing.JTabbedPane jTabbedPane4;
    private javax.swing.JTabbedPane jTabbedPane5;
    private javax.swing.JTable jTable1;
    private org.jdesktop.swingx.JXButton jXButton1;
    private org.jdesktop.swingx.JXCollapsiblePane jXCollapsiblePane1;
    private org.jdesktop.swingx.JXDatePicker ntn_nsinh_gv_s;
    private javax.swing.ButtonGroup rad_group_timtheo;
    private javax.swing.JRadioButton rad_gv;
    private javax.swing.JRadioButton rad_matim;
    private javax.swing.JRadioButton rad_nam;
    private javax.swing.JRadioButton rad_nam1;
    private javax.swing.JRadioButton rad_nam2;
    private javax.swing.JRadioButton rad_nam3;
    private javax.swing.JRadioButton rad_nu;
    private javax.swing.JRadioButton rad_nu1;
    private javax.swing.JRadioButton rad_nu2;
    private javax.swing.JRadioButton rad_nu3;
    private javax.swing.JRadioButton rad_tentim;
    private javax.swing.JRadioButton radhs;
    private javax.swing.JTable tbl_thongke;
    private javax.swing.JTextArea txa_thongtin;
    private javax.swing.JTextField txt_bomon;
    private javax.swing.JTextField txt_bomon1;
    private javax.swing.JTextField txt_chucvu;
    private javax.swing.JTextField txt_chucvu1;
    private javax.swing.JTextField txt_diachi;
    private javax.swing.JTextField txt_diachi1;
    private javax.swing.JTextField txt_diachi2;
    private javax.swing.JTextField txt_diachi3;
    private javax.swing.JTextField txt_email;
    private javax.swing.JTextField txt_email1;
    private javax.swing.JTextField txt_email2;
    private javax.swing.JTextField txt_email_xoa;
    private javax.swing.JTextField txt_file2;
    private javax.swing.JTextField txt_hinh;
    private javax.swing.JTextField txt_hinh1;
    private javax.swing.JTextField txt_hinh2;
    private javax.swing.JTextField txt_ho_lot;
    private javax.swing.JTextField txt_ho_lot1;
    private javax.swing.JTextField txt_ho_lot3;
    private javax.swing.JTextField txt_ho_lot_gv_sua;
    private javax.swing.JTextField txt_loai_xoa;
    private javax.swing.JTextField txt_ngayvao_s;
    private javax.swing.JTextField txt_noidungtim;
    private javax.swing.JTextField txt_ntn_sinh_gv_sua;
    private javax.swing.JPasswordField txt_pass;
    private javax.swing.JPasswordField txt_pass1;
    private javax.swing.JPasswordField txt_pass2;
    private javax.swing.JPasswordField txt_pass3;
    private javax.swing.JTextField txt_ten;
    private javax.swing.JTextField txt_ten1;
    private javax.swing.JTextField txt_ten2;
    private javax.swing.JTextField txt_ten_gv_sua;
    private javax.swing.JTextField txt_ten_xoa;
    private javax.swing.JTextField txt_trinh_do;
    private javax.swing.JTextField txt_trinh_do1;
    private javax.swing.JTextField txt_user;
    private javax.swing.JTextField txt_user1;
    private javax.swing.JTextField txt_user_xoa;
    private javax.swing.JSpinner upd_ngay_vang;
    private javax.swing.JSpinner upd_ngay_vang1;
    private javax.swing.JPanel xem;
    private javax.swing.JDialog xem_hinh_cu;
    // End of variables declaration//GEN-END:variables
}
